import type { RouteRecordRaw } from "vue-router"

const ROUTE_PREFIX = "/shipping"
// 定义页面路由
export const SHIPPING_VIEW_Routes = [{
    name: "CreateShipping",
    path: ROUTE_PREFIX + "/create",
    component: () => import("@/views/shipping/CreateView.vue"),
    meta: {
        icon: "Promotion",
        name: "新建发货订单",
        menu: true,
    }
}, {
    name: "ShippingDetail",
    path: ROUTE_PREFIX + "/detail",
    component: () => import("@/views/shipping/DetailView.vue"),
    meta: {
        icon: "Promotion",
        name: "发货订单详情",
        menu: true,
    }
}, {
    name: "UpdateShipping",
    path: ROUTE_PREFIX + "/update",
    component: () => import("@/views/shipping/UpdateView.vue"),
    meta: {
        icon: "Promotion",
        name: "修改订单详情",
        menu: true,
    }
}] as RouteRecordRaw[]
// 返回菜单路由
export default [{
    name: "Shipping",
    path: ROUTE_PREFIX + "/list",
    component: () => import("@/views/shipping/ListView.vue"),
    meta: {
        icon: "List",
        name: "发货管理",
        menu: true,
    }
}]